package com.itheima.service;
/*
    ヾ(❀ﾟ▽ﾟ)ノ 
 
 Grey1996year@163.com 
 
*/

import com.itheima.entity.PageResult;
import com.itheima.entity.QueryPageBean;
import com.itheima.pojo.Role;
import com.itheima.pojo.User;

import java.util.List;

public interface UserService {

	User findUserByUsername(String username);

	List<Role> findAllRole();

	void add(User user, Integer[] roleIds);

	PageResult findPage(QueryPageBean queryPageBean);

	User findById(Integer id);

	void update(User user, Integer[] roleIds);

	void delete(Integer id);
}
